const md5 = require("blueimp-md5");
// md5 加密
const encryptPwd = (pws) => {
    if (pws) {
        return md5(pws)
    }
}

// 随机生成18位数

function RandNum() {
    let rand = ""
    for (let i = 0; i < 18; i++) {
        rand += Math.floor(Math.random() * 10)

    }
    return rand
}


module.exports = {
    encryptPwd,
    RandNum
}